package com.sz.youban.dt.entity.allinpay;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 支付记录
 * </p>
 *
 * @author ruichar
 * @since 2017-07-03
 */
@TableName("dt_pay_records")
public class DtPayRecords extends Model<DtPayRecords> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 渠道
     */
	private Integer channel;
    /**
     * 100011:实时代收,100014:实时代付,10001:批量代收,100002:批量代付
     */
	private Integer type;
    /**
     * 交易流水号
     */
	@TableField("deal_no")
	private String dealNo;
    /**
     * 交易金额(元)
     */
	private BigDecimal amount;
    /**
     * 商户id
     */
	@TableField("merchant_id")
	private String merchantId;
    /**
     * 打款订单编号
     */
	@TableField("order_no")
	private String orderNo;
    /**
     * 真实姓名
     */
	@TableField("real_name")
	private String realName;
    /**
     * 身份证号
     */
	@TableField("card_id")
	private String cardId;
    /**
     * 手机号
     */
	private String phone;
    /**
     * 银行卡号
     */
	@TableField("bank_no")
	private String bankNo;
    /**
     * 银行卡开户行
     */
	@TableField("bank_name")
	private String bankName;
    /**
     * 银行代码
     */
	@TableField("bank_code")
	private String bankCode;
    /**
     * 银行卡所在省
     */
	@TableField("bank_prov")
	private String bankProv;
    /**
     * 银行卡所在市
     */
	@TableField("bank_city")
	private String bankCity;
    /**
     * 0:失败,1:成功,2:交易中
     */
	private Integer status;
    /**
     * 交易描述
     */
	private String desc;
    /**
     * 清算日期
     */
	@TableField("settle_day")
	private String settleDay;
    /**
     * 操作者账号
     */
	private String operator;
    /**
     * 提交时间
     */
	@TableField("sub_time")
	private Date subTime;
    /**
     * 时间戳
     */
	private Date tsp;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getChannel() {
		return channel;
	}

	public void setChannel(Integer channel) {
		this.channel = channel;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getDealNo() {
		return dealNo;
	}

	public void setDealNo(String dealNo) {
		this.dealNo = dealNo;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public String getMerchantId() {
		return merchantId;
	}

	public void setMerchantId(String merchantId) {
		this.merchantId = merchantId;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getCardId() {
		return cardId;
	}

	public void setCardId(String cardId) {
		this.cardId = cardId;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getBankNo() {
		return bankNo;
	}

	public void setBankNo(String bankNo) {
		this.bankNo = bankNo;
	}

	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	public String getBankCode() {
		return bankCode;
	}

	public void setBankCode(String bankCode) {
		this.bankCode = bankCode;
	}

	public String getBankProv() {
		return bankProv;
	}

	public void setBankProv(String bankProv) {
		this.bankProv = bankProv;
	}

	public String getBankCity() {
		return bankCity;
	}

	public void setBankCity(String bankCity) {
		this.bankCity = bankCity;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getSettleDay() {
		return settleDay;
	}

	public void setSettleDay(String settleDay) {
		this.settleDay = settleDay;
	}

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public Date getSubTime() {
		return subTime;
	}

	public void setSubTime(Date subTime) {
		this.subTime = subTime;
	}

	public Date getTsp() {
		return tsp;
	}

	public void setTsp(Date tsp) {
		this.tsp = tsp;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "DtPayRecords{" +
				"id=" + id +
				", channel=" + channel +
				", type=" + type +
				", dealNo='" + dealNo + '\'' +
				", amount=" + amount +
				", merchantId='" + merchantId + '\'' +
				", orderNo='" + orderNo + '\'' +
				", realName='" + realName + '\'' +
				", cardId='" + cardId + '\'' +
				", phone='" + phone + '\'' +
				", bankNo='" + bankNo + '\'' +
				", bankName='" + bankName + '\'' +
				", bankCode='" + bankCode + '\'' +
				", bankProv='" + bankProv + '\'' +
				", bankCity='" + bankCity + '\'' +
				", status=" + status +
				", desc='" + desc + '\'' +
				", settleDay='" + settleDay + '\'' +
				", operator='" + operator + '\'' +
				", subTime=" + subTime +
				", tsp=" + tsp +
				'}';
	}
}
